//
//  MiTuGiftModel.swift
//  MT
//
//  Created by M on 2019/12/15.
//  Copyright © 2019 张强. All rights reserved.
//

import UIKit
import ObjectMapper

class MiTuGiftResponseModel: Mappable {
    
    var result: [MiTuGiftModel]?
    
    var code: Int?
    
    var partyResult: MiTuGiftModel?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        result          <- map["result"]
        code          <- map["code"]
        partyResult <- map["result"]
    }
    
}

// MARK: ------------------ 礼物模型 ----------------------
class MiTuGiftModel: Mappable {
    
    /// 礼物 id
    var id: Int?
    
    /// 图标
    var icon: String?
    
    /// 礼物名称
    var name: String?
    
    /// 价格
    var price: Int?
    
    /// 是否被选中
    var isSelected: Bool = false
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        id          <- map["id"]
        icon        <- map["icon"]
        name        <- map["name"]
        price       <- map["price"]
    }

}
